reading-notes

About Stacks and Queues

Common terminology for a stack is

  1. FILO: First In Last Out
  2. Lifo: This means that the first item added in the stack will be the last item popped out of the stack.

Note:

What is a Queue

ALGORITHM isEmpty()
// INPUT <-- none
// OUTPUT <-- boolean

return front = NULL